
function readonly(target, key, descriptor) {
  descriptor.writable = true
  return descriptor
}
function doge (target) {
  target.isDoge = true
  target.gege = 'xasdasd'
}

class Dog {
  @doge
  @readonly
  bark () {
    return 'wang!wang!'
  }
}
let dog = new Dog()
dog.bark = 'bark!bark!'
console.log(dog.bark);
console.log(dog.isDoge);
console.log(dog.gege)